<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
    <style>
        body {
            background: #f2f2f2
        }

        .info {
            background: #fff;
            width: 100%;
            padding: 0 .6rem
        }

        .info-item {
            position: relative;
        }

        .info-item input {
            position: absolute;
            left: 3.3rem
        }

        .btn {
            margin: 1.2rem .6rem 0 .6rem;
            width: calc(100% - 1.2rem)
        }

        .dun {
            position: absolute;
            bottom: .6rem;
            left: 0;
            right: 0
        }
    </style>
</head>

<body>
    <div id="app">
        <section>
            <div class="height-33 font-12 text-color-9" style="padding-left:0.6rem">
                请绑定持卡人本人的银行卡
            </div>
            <div class="font-14 text-color-3 info">
                <div class="height-50 flex-align-center info-item">
                    <div>
                        持卡人
                    </div>
                    <input v-model='name'  placeholder='姓名'>
                </div>
                <div class="height-50 flex-align-center info-item">
                    <div class="">
                        卡号
                    </div>
                    <input v-model='cardNum' placeholder='卡号'>
                </div>
            </div>
            <button class='red-btn btn' @click='toSettingCardInfo'>下一步</button>
        </section>
        <section>
            <div class="flex-center dun">
                <img src="../../image/merchant/dun.png" alt="" style="height:0.75rem;width:0.6rem;margin-right:.15rem">
                <span class="font-12 text-color-9">好获认证提现系统</span>
            </div>
        </section>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript " src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js "></script>
<script type="text/javascript">
    var vm = new Vue({
        el: '#app',
        data: {
            name: '',
            cardNum: ''
        },
        methods: {
          name:function(){
            var name = this.name
            alert(name)
          },
            toSettingCardInfo: function() {
                api.openFrame({
                    name: 'setting-card-info_win',
                    url: './setting-card-info_win.html',
                    rect: {
                        x: 0,
                        y: 0,
                        w: api.winWidth,
                        h: api.winHeight

                    },
                    pageParam: {
                        name: 'test'
                    },
                    bounces: true,
                    bgColor: 'rgba(0,0,0,0)',
                    vScrollBarEnabled: true,
                    hScrollBarEnabled: true
                });

            }
        }
    });
    apiready = function() {
        api.parseTapmode();
    };
</script>

</html>
